import wait from "../../api/sale-enter-depot.js";

let brand = {
    data(){
        return{
            tableData: [],//数据信息
            total: '',//总条数
            searchParams: {
                currentPage: 1,//当前页
                pageSize: 5,//每页显示条数
            },
            formData: {},//新增表单信息

        }
    },
    methods:{
        /**
         * 查询所有
         */
        async searchPage() {
            console.log(this.searchParams)
            let response = await wait.findPage(this.searchParams);
            this.total = response.total;//总行数赋值
            this.tableData = response.data;//数据信息赋值
        },
    },
    created(){
        this.searchPage();
    }
};

export default brand;